﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JeanFish.Blog
{
    public abstract class UserBase:ModelBase
    {
        protected string _name = Resources.DefaultUserName;
        protected string _username = string.Empty;
        protected string _password = string.Empty;
        protected UserBase Clone()
        {
            return this.MemberwiseClone() as UserBase;
        }
        protected void Copy(UserBase userbase)
        {
            using (var user = userbase.Clone())
            {
                this._id = user._id;
                this._name = user._name;
                this._username = user._username;
                this._password = user._password;
            }
        }
    }
}
